<a href='https://github.com/angular/angular.js/edit/v1.4.x/docs/content/error/ng/cpws.ngdoc?message=docs(error%2Fcpws)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: ng:cpws
  <div><span class='hint'>Copying Window or Scope</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Can't copy! Making copies of Window or Scope instances is not supported.">Can't copy! Making copies of Window or Scope instances is not supported.</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>Copying Window or Scope instances is not supported because of cyclical and self
references. Avoid copying windows and scopes, as well as any other cyclical or
self-referential structures. Note that trying to deep copy an object containing
cyclical references that is neither a window nor a scope will cause infinite
recursion and a stack overflow.</p>

</div>


